import requests
from lxml import etree
base_url = "https://www.hbjcxy.com/jyyw/"
response = requests.get(base_url)
response.encoding = "utf-8"
# 解析网页
node = etree.HTML(response.text)
# 使用xpath寻找节点
titles = node.xpath("//div[@class='list-item']//a/text()")
for i in range(len(titles)):
    titles[i] = str(titles[i]).strip()
print(titles)
